﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MAP_EDITOR_AHNT
{
    public partial class NewMap : Form
    {
        private bool _yourbackground;
        private string _background;
        private Color _color;
        public bool YourBackground
        {
            get { return _yourbackground; }
            set { _yourbackground = value; }
        }
        public string Background
        {
            get { return _background; }
            set { _background = value; }
        }
        public Color BackgroundColor
        {
            get { return _color; }
            set { _color = value; }
        }
        public NewMap()
        {
            InitializeComponent();
        }

        private void NewMap_Load(object sender, EventArgs e)
        {

        }

        private void radioButtonDefaultBackground_CheckedChanged(object sender, EventArgs e)
        {
            
            YourBackground = false;
        }

       

        private void buttonOK_Click(object sender, EventArgs e)
        {
            DialogResult result;
            
              result=colorDialog1.ShowDialog();
                if (result == DialogResult.OK)
                {
                    BackgroundColor = colorDialog1.Color;
                }
            
            this.Close();
 
        }
    }
}
